package com.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2022/7/10 16:18
 */
@TableName("cy_goods")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods implements Serializable {

    @TableField(value = "id")
    private Integer id;
    @TableField(value = "goods_name")
    private String goods_name;
    @TableField(value = "cate_id")
    private Integer cate_id;
    @TableField(value = "price")
    private Integer price;
    @TableField(value = "original")
    private Integer original;
    @TableField(value = "tags")
    private String tags;
    @TableField(value = "content")
    private String content;
    @TableField(value = "summary")
    private String summary;
    @TableField(value = "is_sale")
    private Integer is_sale;
    @TableField(value = "created_at",fill = FieldFill.INSERT)
    private LocalDateTime created_at;
    @TableField(value = "updated_at",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;







}
